﻿using System.ServiceProcess;

namespace Resonance.TrainNode.WndSvcHost
{
	partial class TrainNodeHostWndService : ServiceBase
	{
		private TrainNodeWCFManager trainNodeManager;

		public TrainNodeHostWndService()
		{
			InitializeComponent();
		}

		protected override void OnStart(string[] args)
		{
			trainNodeManager = new TrainNodeWCFManager();
			trainNodeManager.StartServiceHost();
		}

		protected override void OnStop()
		{
			trainNodeManager.StopServiceHost();
		}
	}
}
